package org.willthink.dao.account.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.willthink.dao.account.AccountDAO;

public class AccountDAOImpl extends SqlMapClientDaoSupport implements AccountDAO {

	@Override
	public void insertAcc(Map<String, String> map) throws SQLException {
		getSqlMapClient().insert("account.insertAccount", map);
	}

	@Override
	public List<Map<String, String>> getAccountList() throws SQLException {
		
		return getSqlMapClient().queryForList("account.getAccountList");
	}

	@Override
	public void deleteAccount(String seqNo) throws SQLException {
		
		getSqlMapClient().delete("account.deleteAccount", seqNo);
	}

	@Override
	public void updateAccount(Map<String, String> map) throws SQLException {
		
		
	}

}
